﻿using System;
using System.Collections.Generic;
using Egeye.AddIn;

namespace ServiceTest
{
    [Serializable]
    [AddIn("ServiceAddIn")]
    public class ServiceAddIn : AddInBase
    {
        public override void Start(IBundleContext context)
        {
            // 创建服务实例
            HelloService hello = new HelloService();

            // 注册服务
            context.RegisterService<HelloService>(hello, null);
        }

        public override void Stop(IBundleContext context)
        {
            
        }
    }
}
